package com.example.fw;

import org.netbeans.jemmy.operators.JMenuBarOperator;

public class MenuHelper extends HelpersBase {


	public MenuHelper(ApplicationManager applicationManager) {
		super(applicationManager);
		
	}

	public void pushCreateFolder() {

		JMenuBarOperator menu = new JMenuBarOperator(mainFrame);
		menu.pushMenuNoBlock("File|New folder...");
		
	}

	public void pushDeleteFolder() {
		JMenuBarOperator menu = new JMenuBarOperator(mainFrame);
		menu.pushMenuNoBlock("File|Delete");
		
	}
	
	public void testMenu() {
		JMenuBarOperator menu = new JMenuBarOperator(mainFrame);
		menu.pushMenuNoBlock("File|Del");
		waitMessageDialog("AddressBook: Confirm", 2000);
		/*MenuElement[] _elems = menu.getSubElements();
		for(MenuElement _elem : _elems)
		{
			System.out.println(_elem.toString());
			MenuElement[] _children = _elem.getSubElements();
			for(MenuElement _child : _children)
			{
				System.out.println("     child = " + _child);
			}
			 
		}*/
	}

}
